package com.dongnam.quanly.common.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.dongnam.quanly.common.model.enumtype.HinhThuc;
import com.dongnam.quanly.common.model.enumtype.LoaiHoaDon;
import com.dongnam.quanly.common.model.enumtype.TienTe;
import com.dongnam.quanly.common.model.enumtype.TrangThaiHoaDon;

@Entity
@Table(name = "HoaDon")
public class HoaDon extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@Id
	@Column(name = "SoHoaDon", length = 30)
	private String soHoaDon;

	@Column(name = "DoiTac")
	private String doiTac;

	@Column(name = "NgayHoaDon")
	private Date ngayHoaDon;

	@Column(name = "NgayHachToan")
	private Date ngayHachToan;

	@Column(name = "HinhThucThanhToan", length = 30)
	@Enumerated(EnumType.STRING)
	private HinhThuc hinhThucThanhToan;

	@Column(name = "TienTe", length = 30)
	@Enumerated(EnumType.STRING)
	private TienTe tienTe;

	@Column(name = "TyGia")
	private Double tyGia;

	@Column(name = "DonHang")
	private String donHang;

	@Column(name = "TongTien")
	private Double tongTien;

	@Column(name = "TongTienUSD")
	private Double tongTien_USD;

	@Column(name = "LoaiHoaDon", length = 30)
	@Enumerated(EnumType.STRING)
	private LoaiHoaDon loaiHoaDon;

	@Column(name = "TrangThai", length = 30)
	@Enumerated(EnumType.STRING)
	private TrangThaiHoaDon trangThai;

	public HoaDon() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getSoHoaDon() {
		return soHoaDon;
	}

	public void setSoHoaDon(String soHoaDon) {
		this.soHoaDon = soHoaDon;
	}

	public Date getNgayHoaDon() {
		return ngayHoaDon;
	}

	public void setNgayHoaDon(Date ngayHoaDon) {
		this.ngayHoaDon = ngayHoaDon;
	}

	public Date getNgayHachToan() {
		return ngayHachToan;
	}

	public void setNgayHachToan(Date ngayHachToan) {
		this.ngayHachToan = ngayHachToan;
	}

	public HinhThuc getHinhThucThanhToan() {
		return hinhThucThanhToan;
	}

	public void setHinhThucThanhToan(HinhThuc hinhThucThanhToan) {
		this.hinhThucThanhToan = hinhThucThanhToan;
	}

	public TienTe getTienTe() {
		return tienTe;
	}

	public void setTienTe(TienTe tienTe) {
		this.tienTe = tienTe;
	}

	public Double getTyGia() {
		return tyGia;
	}

	public void setTyGia(Double tyGia) {
		this.tyGia = tyGia;
	}

	public Double getTongTien() {
		return tongTien;
	}

	public void setTongTien(Double tongTien) {
		this.tongTien = tongTien;
	}

	public Double getTongTien_USD() {
		return tongTien_USD;
	}

	public void setTongTien_USD(Double tongTien_USD) {
		this.tongTien_USD = tongTien_USD;
	}

	public LoaiHoaDon getLoaiHoaDon() {
		return loaiHoaDon;
	}

	public void setLoaiHoaDon(LoaiHoaDon loaiHoaDon) {
		this.loaiHoaDon = loaiHoaDon;
	}

	public String getDoiTac() {
		return doiTac;
	}

	public void setDoiTac(String doiTac) {
		this.doiTac = doiTac;
	}

	public String getDonHang() {
		return donHang;
	}

	public void setDonHang(String donHang) {
		this.donHang = donHang;
	}

	public TrangThaiHoaDon getTrangThai() {
		return trangThai;
	}

	public void setTrangThai(TrangThaiHoaDon trangThai) {
		this.trangThai = trangThai;
	}

}
